﻿<UserControl x:Class="PrismFactory.SoftwareFactory.Views.CreateSolution.CollectRootNamespacePageView" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" Height="499" Width="803">
    <UserControl.Resources>
        <Style x:Key="textBoxInError" TargetType="{x:Type TextBox}">
            <Style.Triggers>
                <Trigger Property="Validation.HasError" Value="true">
                    <Setter Property="ToolTip" Value="{Binding (Validation.Errors)[0].ErrorContent, RelativeSource={x:Static RelativeSource.Self}}" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <Canvas>
        <Label Content="Root namespace:" Height="25" Width="119" Canvas.Left="10" Canvas.Top="8"/>
        <TextBox TextWrapping="Wrap" HorizontalAlignment="Left" Height="25"  Width="327" 
			Text="{Binding RootNamespace, Mode=TwoWay, ValidatesOnDataErrors=True}" Style="{StaticResource textBoxInError}" Canvas.Left="13" Canvas.Top="33" d:LayoutOverrides="Height" />
        <TreeView Height="308" Canvas.Top="102" Width="328" Canvas.Left="12">
            <TreeViewItem Header="Source" IsExpanded="True">
                <TreeViewItem Header="Modules" />
                <TreeViewItem Header="{Binding InfrastructureProjectName}" />
                <TreeViewItem Header="{Binding ShellProjectName}" />
            </TreeViewItem>
            <TreeViewItem Header="UnitTests" IsExpanded="True">
                <TreeViewItem Header="{Binding InfrastructureTestProjectName}" />
                <TreeViewItem Header="{Binding ShellTestProjectName}" />
            </TreeViewItem>
        </TreeView>
        <Label Content="Solution Preview" Height="29" Width="107" Canvas.Left="12" Canvas.Top="73" />
    </Canvas>
</UserControl>